package su.samlib.informer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import android.widget.LinearLayout;

public class MainMenuActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_menu_activity);
        LinearLayout AuthorsShowLayout = (LinearLayout) findViewById(R.id.ShowAuthorListLayout);
        AuthorsShowLayout.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				showAuthorMenuActivity();
			}
		});
        LinearLayout AuthorAddLayout = (LinearLayout) findViewById(R.id.AuthorAddLayout);
        AuthorAddLayout.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				showAuthorAddActivity();
				
			}
		});
    }
    
    public void showAuthorMenuActivity(){
    	startActivity(new Intent(this,AuthorListActivity.class));
    }
    public void showAuthorAddActivity(){
    	startActivity(new Intent(this,AuthorAddActivity.class));
    }
}
